package com.zy.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zy.entity.Schedule;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface ScheduleMapper extends BaseMapper<Schedule> {
    //根据用户id查用户的所有日程
    List<Schedule> selectScheduleByUserId(@Param("id") Integer id,@Param("date") String date);
    //添加日程
    Integer addSchedule(Schedule schedule);
}
